#pragma once

#include <QWidget>
#include <QPainter>
#include "Common.h"
#include "PackDefine.h"

class BTEItemWidget : public QWidget
{
	Q_OBJECT

public:
	BTEItemWidget(QWidget *parent = Q_NULLPTR);
	~BTEItemWidget();	

	void setIndex(int idx);
	void setTitle(QString text);

	int connect();
	void setConnect(int type);

	void clearValue();
	void setValue(stru_PACK_READ_STATUS_RESP status);

private:
	virtual void paintEvent(QPaintEvent *event) override;

	int m_idx;
	int m_connect;
	stru_PACK_READ_STATUS_RESP m_status;
	QDateTime m_lastUpdate;

	QString m_title;
	QStringList m_labels;	
};
